package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MoreSettingsMapper;
import com.ruoyi.system.domain.MoreSettings;
import com.ruoyi.system.service.IMoreSettingsService;

/**
 * 更多设置 Service业务层处理
 *
 * @author ruoyi
 * @date 2025-05-12
 */
@Service
public class MoreSettingsServiceImpl implements IMoreSettingsService
{
    @Autowired
    private MoreSettingsMapper moreSettingsMapper;

    /**
     * 通过id查询更多设置
     *
     * @param id 更多设置主键
     * @return 更多设置
     */
    @Override
    public MoreSettings selectMoreSettingsById(Long id)
    {
        return moreSettingsMapper.selectMoreSettingsById(id);
    }

    /**
     * 查询更多设置列表
     *
     * @param moreSettings 更多设置
     * @return 更多设置
     */
    @Override
    public List<MoreSettings> selectMoreSettingsList(MoreSettings moreSettings)
    {
        return moreSettingsMapper.selectMoreSettingsList(moreSettings);
    }

    /**
     * 新增更多设置列表
     *
     * @param moreSettings 更多设置
     * @return 结果
     */
    @Override
    public int insertMoreSettings(MoreSettings moreSettings)
    {
        return moreSettingsMapper.insertMoreSettings(moreSettings);
    }

    /**
     * 修改更多设置列表
     *
     * @param moreSettings 更多设置
     * @return 结果
     */
    @Override
    public int updateMoreSettings(MoreSettings moreSettings)
    {
        return moreSettingsMapper.updateMoreSettings(moreSettings);
    }

    /**
     * 通过id批量删除更多设置信息
     *
     * @param ids 需要删除的更多设置主键
     * @return 结果
     */
    @Override
    public int deleteMoreSettingsByIds(Long[] ids)
    {
        return moreSettingsMapper.deleteMoreSettingsByIds(ids);
    }

    /**
     * 通过id删除更多设置信息
     *
     * @param id 更多设置主键
     * @return 结果
     */
    @Override
    public int deleteMoreSettingsById(Long id)
    {
        return moreSettingsMapper.deleteMoreSettingsById(id);
    }

    /**
     * 根据门店ID查询更多设置详情
     *
     * @param storeId 门店ID
     * @return 更多设置详情
     */
    @Override
    public MoreSettings selectByStoreId(Long storeId)
        {
        return moreSettingsMapper.selectByStoreId(storeId);
        }
}
